import { createRouter, createWebHistory } from 'vue-router'

import Home from "./components/home.vue"
import Register from "./components/register.vue"
import Login from "./components/login.vue"
import Read from './components/read.vue'
import Manage from './components/manage.vue'
import Modify from './components/modify.vue'

const routerHistory = createWebHistory()
const router = createRouter({
    history: routerHistory,
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home
        },
        {
            path: '/register',
            name: 'register',
            component: Register
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/read',
            name: 'read',
            component: Read
        },
        {
            path: '/manage',
            name: 'manage',
            component: Manage
        },
        {
            path: '/modify',
            name: 'modify',
            component: Modify
        },
    ]
})

export default router